/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2022-04-08 14:34:07
 * @LastEditors: ziwei
 * @LastEditTime: 2022-04-08 15:10:26
 */
const computedScss = (scss: string) => {
  const scssStr = scss.replace(/(:export)|{|}|\n| /g, '')
  const scssMap = scssStr
    .split(';')
    .slice(0, -1)
    .map((item) => item.split(':'))
  return Object.fromEntries(scssMap)
}

export default computedScss
